import {request} from '@/utils/request';

export type LoginParamsType = {
  userName: string;
  password: string;
  mobile: string;
  captcha: string;
};

export async function fakeAccountLogin(params: any) {
  return request('/api/user/login?account='+params.userName+"&password="+params.password, {
    method: 'POST'
  });
}
export async function register(params: any) {
  return request('/api/freshSystem/register/'+params.userName+"/"+params.candidateNumber, {
    method: 'GET',
  });
}

export async function getFakeCaptcha(mobile: string) {
  return request(`/api/login/captcha?mobile=${mobile}`);
}
